package com.xbongbong.pro.customerstatement.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class StatementCustomerTableDTO extends BaseDTO {
    private static final long serialVersionUID = 1587780938999159410L;
    /**
     * 对账单appId
     */
    @NotNull(message = "{dto.msg.appId.NotNull}")
    private Long appId;

    /**
     * 对账单表单id
     */
    @NotNull(message = "{dto.msg.formId.NotNull}")
    private Long formId;
    /**
     * 客户id
     */
    @NotNull(message = "{dto.msg.statementCustomerTable.customerId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long customerId;
    /**
     * 对账日期范围筛选：[1601481600, 1603555199]
     */
    @NotNull(message = "{dto.msg.statementCustomerList.checkingDate.NotEmpty}")
    @NotEmpty(message = "{dto.msg.statementCustomerList.checkingDate.NotEmpty}")
    @Getter(onMethod_ = {@QueryIgnore})
    private List<Long> checkingDate;
    /**
     * 分页当前页
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @Min(value=1, message = "{dto.msg.page.Min}")
    private Integer page;

    /**
     * 分页每页记录数
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @Min(value=1, message = "{dto.msg.page.Min}")
    private Integer pageSize;
    /**
     * 导出为1
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer fromExport;
}
